package graphics;

import java.util.List;

public class GlowParticle extends Particle{

	static int rFactor = 2000;
	
	public GlowParticle(int x, int y){
		super(x-rFactor+rnd.nextInt(2*rFactor), y-rFactor+rnd.nextInt(2*rFactor));
		lifetime = 2+rnd.nextInt(15);
		particleSize = 4000-rFactor/4+rnd.nextInt(rFactor/2);
		setImage("glowBlue1.png");
	}
	public void nextFrame(List<Particle> pList){
		lifetime--;
		if(isDead())
			pList.remove(this);
		spdy -= 30;
		posx = posx + spdx;
		posy = posy + spdy;
		
	}
}
